-- GENERATED SPELL FOR [Hand of Kargath] --


function spell0_22374(pUnit, Event) --@Blade Flurry,Self--
pUnit:FullCastSpellOnTarget(33735,pUnit)
pUnit:RegisterEvent('Sorts_22374', 15332, 1)
end

function spell1_22374(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(24193,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22374', 2333, 1)
end

function spell2_22374(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22374', 10302, 1)
end

function spell3_22374(pUnit, Event) --@Toughen,Self--
pUnit:FullCastSpellOnTarget(33962,pUnit)
pUnit:RegisterEvent('Sorts_22374', 599, 1)
end

function Sorts_22374(pUnit, Event)
local choix_sorts_22374 = math.random(0, 3)
if choix_sorts_22374 == 0 then
pUnit:RegisterEvent('spell0_22374', 1, 1)
end
if choix_sorts_22374 == 1 then
pUnit:RegisterEvent('spell1_22374', 1, 1)
end
if choix_sorts_22374 == 2 then
pUnit:RegisterEvent('spell2_22374', 1, 1)
end
if choix_sorts_22374 == 3 then
pUnit:RegisterEvent('spell3_22374', 1, 1)
end
end

function mob22374_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22374', math.random(1500, 3000), 1)
end

function mob22374_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22374_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22374_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22374, 1, 'mob22374_Action')
RegisterUnitEvent(22374, 2, 'mob22374_Leave')
RegisterUnitEvent(22374, 3, 'mob22374_Kill')
RegisterUnitEvent(22374, 4, 'mob22374_Die')
